<%@ page language="java" import="weaver.conn.RecordSet" pageEncoding="UTF-8" %>
<%@ page import="weaver.general.BaseBean" %>
<%@ page import="weaver.hrm.User" %>
<%@ page import="weaver.hrm.HrmUserVarify" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.hrm.report.schedulediff.HrmScheduleDiffUtil" %>

<html>
<head>
    <SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
    <SCRIPT language="javascript" src="/js/weaverTable_wev8.js"></script>
    <SCRIPT type="text/javascript" src="/formmode/js/WdatePicker/WdatePicker_wev8.js"></script>
</head>
<script type="text/javascript">
    function getDialog() {
        $("#dialogfrm").dialog({
            autoOpen: false,   // 是否自动弹出窗口
            modal: true,    // 设置为模态对话框
            resizable: true,
            width: 410,   //弹出框宽度
            height: 240,   //弹出框高度
            title: "用户登录",  //弹出框标题
            position: "center",  //窗口显示的位置
            buttons: {
                '确定': function () {
                    $("#dialogDiv").dialog("open");
//调用登录的方法
                },
                '取消': function () {
                    $(this).dialog("close");
                }
            }
        });
    }
    WfForm.bindDetailFieldChangeEvent("field5970",function(id,rowIndex,value){
        setTimeout(function () {

        },500)
        if(value != ""){
            console.log("rowIndex="+rowIndex+",value="+value);
            if(value=='AA'){
                WfForm.changeFieldValue("field6383"+"_"+rowIndex, {value:"0"});
            } else if(value=='A'){
                WfForm.changeFieldValue("field6383"+"_"+rowIndex, {value:"1"});
            } else if(value=='B'){
                WfForm.changeFieldValue("field6383"+"_"+rowIndex, {value:"2"});
            } else if(value=='C'){
                WfForm.changeFieldValue("field6383"+"_"+rowIndex, {value:"3"});
            } else if(value=='D'){
                WfForm.changeFieldValue("field6383"+"_"+rowIndex, {value:"4"});
            } else if(value=='一等品'){
                WfForm.changeFieldValue("field6383"+"_"+rowIndex, {value:"5"});
            } else if(value=='优等品'){
                WfForm.changeFieldValue("field6383"+"_"+rowIndex, {value:"6"});
            } else if(value=='合格品'){
                WfForm.changeFieldValue("field6383"+"_"+rowIndex, {value:"7"});
            } else if(value=='等外品'){
                WfForm.changeFieldValue("field6383"+"_"+rowIndex, {value:"8"});
            } else if(value=='其他'){
                WfForm.changeFieldValue("field6383"+"_"+rowIndex, {value:"9"});
            }
        }
    });
</script>
<body>
<input type="button" id="login" onclick="getDialog()" value="点击登录"/>
<div id="dialogfrm" style="display:none">

    <iframe id="frame" style="border: 0px;" src="url" width='100%' height='100%'></iframe>

</div>


</body>
</html>